<?php
/**
 * Grow
 * Mundy can grow by adding compenents!
 *
 * @package Mundy
 */

namespace mundy;

class Grow {

    protected $store = array();
    
    /**
     * @see http://twittee.org
     */
    public function __set( $k, $v ) {
        $this->store[$k] = $v;
    }

    /**
     * @see http://twittee.org
     */
    public function __get( $k ) {
        return ( !is_array($this->store[$k]) && is_callable($this->store[$k]) ) ?
            $this->store[$k]($this) :
            $this->store[$k];
    }
}